package com.czxy.service;

import com.czxy.dao.ProvinceMapper;
import com.czxy.domain.Province;
import com.czxy.utils.MyBatisUtils;

import java.util.List;

public class ProvinceService {

    public List<Province> findAll(){

        ProvinceMapper mapper = MyBatisUtils.getMapper(ProvinceMapper.class);
        List<Province> provinces = mapper.selectAll();
        MyBatisUtils.close();

        return provinces;
    }
}
